﻿using System;
using System.Collections.Generic;
using System.Text;


namespace Atosenet.Protocol
{
    public interface IProtocolPacket : ICloneable
    {
        void Append(byte[] data, ref int offset);
        byte[] Generate();
        void Reset();

        byte[] PacketFlag { get; }

        string PacketDataHex { get; }
        byte[] RawData { get; }
        int DataLength { get; }
        DateTime Timestamp { get; }
        bool IsValid { get; }
        bool IsCompleted { get; }
    }
}
